package com.neo.service;

import com.neo.model.User;
import com.neo.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: lishuangqiang
 * @Date: 2020/3/28
 * @Description:
 */

@Service
public class UserServiceImpl implements UserService {


    @Autowired
    private UserRepository userRepository;

    @Override
    public Boolean login(String userName) {
        User user = userRepository.findByUserName("aa");
        boolean result = user == null ? false : true;
        return result;
    }
}
